package com.fs.service.bo.task;

import com.fs.entity.ScheduledTask;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BoTask {
    private String id;
    private String content;
    private String type;
    private LocalDateTime createTime;

    public BoTask(ScheduledTask task) {
        id = task.getId();
        content = task.getContent();
        type = task.getType().name();
        createTime = task.getCreateTime();
    }

}
